\hypertarget{classdb_1_1_course}{
\section{db.Course Class Reference}
\label{classdb_1_1_course}\index{db::Course@{db::Course}}
}


\hyperlink{classdb_1_1_course}{Course} model for storing course name, section, credits, etc.  


\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classdb_1_1_course_a9df361a8667159cc1d3dca38189b13bd}{
def {\bfseries \_\-\_\-str\_\-\_\-}}
\label{classdb_1_1_course_a9df361a8667159cc1d3dca38189b13bd}

\item 
\hypertarget{classdb_1_1_course_af527b402d51eb2cb43bbcd5e9eb80808}{
def {\bfseries \_\-\_\-repr\_\-\_\-}}
\label{classdb_1_1_course_af527b402d51eb2cb43bbcd5e9eb80808}

\end{DoxyCompactItemize}
\subsection*{Static Public Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classdb_1_1_course_a7264c0c1662cd3b4ca3cf21bebe6465b}{
tuple \hyperlink{classdb_1_1_course_a7264c0c1662cd3b4ca3cf21bebe6465b}{dept} = db.ReferenceProperty(\hyperlink{classdb_1_1_department}{Department})}
\label{classdb_1_1_course_a7264c0c1662cd3b4ca3cf21bebe6465b}

\begin{DoxyCompactList}\small\item\em \hyperlink{classdb_1_1_department}{Department} variable. \item\end{DoxyCompactList}\item 
tuple \hyperlink{classdb_1_1_course_af09a033bc4c5079d9a9ddd9caff43ec1}{courseNum} = db.StringProperty()
\begin{DoxyCompactList}\small\item\em \hyperlink{classdb_1_1_course}{Course} number variable. \item\end{DoxyCompactList}\item 
tuple \hyperlink{classdb_1_1_course_abc1c9a9aa1d4f5ad637f125080861baa}{section} = db.StringProperty()
\begin{DoxyCompactList}\small\item\em Section letter variable. \item\end{DoxyCompactList}\item 
tuple \hyperlink{classdb_1_1_course_a0c8b909d11f2b4d9777f90afbdc86fb5}{type} = db.StringListProperty(choices=\mbox{[}\char`\"{}writing\char`\"{}, \char`\"{}lab\char`\"{}, \char`\"{}honors\char`\"{}, \mbox{[}$\,$\mbox{]}\mbox{]})
\begin{DoxyCompactList}\small\item\em Type of class variable. \item\end{DoxyCompactList}\item 
tuple \hyperlink{classdb_1_1_course_ab3d2d753aa9d8bbe097c0451766dce51}{credits} = db.IntegerProperty()
\begin{DoxyCompactList}\small\item\em Credits variable. \item\end{DoxyCompactList}\item 
tuple \hyperlink{classdb_1_1_course_a77a8cf75268a30b61bda62b52cd63ec2}{title} = db.StringProperty()
\begin{DoxyCompactList}\small\item\em Title of class variable. \item\end{DoxyCompactList}\item 
tuple \hyperlink{classdb_1_1_course_aa63be9370d9c1d5b158c32fb3d52abd4}{prerequisites} = db.StringProperty()
\begin{DoxyCompactList}\small\item\em Prerequisites variable. \item\end{DoxyCompactList}\item 
tuple \hyperlink{classdb_1_1_course_ae98441bd9dbd7ce36b1a85744e153472}{description} = db.TextProperty()
\begin{DoxyCompactList}\small\item\em Description of class variable. \item\end{DoxyCompactList}\item 
tuple \hyperlink{classdb_1_1_course_ab40dce44a9a1a1aaa92f985e9b8507b2}{notes} = db.StringProperty()
\begin{DoxyCompactList}\small\item\em Notes variable. \item\end{DoxyCompactList}\item 
\hypertarget{classdb_1_1_course_a760cebc806b3dac30134290eda73f589}{
tuple {\bfseries times} = \hyperlink{classobject__list__property_1_1_object_list_property}{ObjectListProperty}(\hyperlink{classdb_1_1_time_range}{TimeRange}, indexed=False)}
\label{classdb_1_1_course_a760cebc806b3dac30134290eda73f589}

\item 
tuple \hyperlink{classdb_1_1_course_a5398dd16d3946c142e30203107ac0795}{professor} = db.ReferenceProperty(\hyperlink{classdb_1_1_professor}{Professor})
\begin{DoxyCompactList}\small\item\em \hyperlink{classdb_1_1_professor}{Professor} variable. \item\end{DoxyCompactList}\item 
tuple \hyperlink{classdb_1_1_course_aee5c046a740f6e80b08478fdd6773d94}{openSpots} = db.IntegerProperty()
\begin{DoxyCompactList}\small\item\em Open spots variable. \item\end{DoxyCompactList}\item 
tuple \hyperlink{classdb_1_1_course_af82c1018c59abf951fcd8241f3236986}{location} = db.StringProperty()
\begin{DoxyCompactList}\small\item\em Location variable. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\hyperlink{classdb_1_1_course}{Course} model for storing course name, section, credits, etc. 
\begin{DoxyParams}{Parameters}
{\em db.Model} & The database model for datastore. \\
\hline
\end{DoxyParams}


\subsection{Member Data Documentation}
\hypertarget{classdb_1_1_course_af09a033bc4c5079d9a9ddd9caff43ec1}{
\index{db::Course@{db::Course}!courseNum@{courseNum}}
\index{courseNum@{courseNum}!db::Course@{db::Course}}
\subsubsection[{courseNum}]{\setlength{\rightskip}{0pt plus 5cm}tuple {\bf db.Course.courseNum} = db.StringProperty()\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{classdb_1_1_course_af09a033bc4c5079d9a9ddd9caff43ec1}


\hyperlink{classdb_1_1_course}{Course} number variable. 

Everything following the three letter code, e.g. 120 \hypertarget{classdb_1_1_course_ab3d2d753aa9d8bbe097c0451766dce51}{
\index{db::Course@{db::Course}!credits@{credits}}
\index{credits@{credits}!db::Course@{db::Course}}
\subsubsection[{credits}]{\setlength{\rightskip}{0pt plus 5cm}tuple {\bf db.Course.credits} = db.IntegerProperty()\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{classdb_1_1_course_ab3d2d753aa9d8bbe097c0451766dce51}


Credits variable. 

Stores number of credits a class is worth. \hypertarget{classdb_1_1_course_ae98441bd9dbd7ce36b1a85744e153472}{
\index{db::Course@{db::Course}!description@{description}}
\index{description@{description}!db::Course@{db::Course}}
\subsubsection[{description}]{\setlength{\rightskip}{0pt plus 5cm}tuple {\bf db.Course.description} = db.TextProperty()\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{classdb_1_1_course_ae98441bd9dbd7ce36b1a85744e153472}


Description of class variable. 

As scraped from myUM. \hypertarget{classdb_1_1_course_af82c1018c59abf951fcd8241f3236986}{
\index{db::Course@{db::Course}!location@{location}}
\index{location@{location}!db::Course@{db::Course}}
\subsubsection[{location}]{\setlength{\rightskip}{0pt plus 5cm}tuple {\bf db.Course.location} = db.StringProperty()\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{classdb_1_1_course_af82c1018c59abf951fcd8241f3236986}


Location variable. 

Indicates what building and room the class takes place in. \hypertarget{classdb_1_1_course_ab40dce44a9a1a1aaa92f985e9b8507b2}{
\index{db::Course@{db::Course}!notes@{notes}}
\index{notes@{notes}!db::Course@{db::Course}}
\subsubsection[{notes}]{\setlength{\rightskip}{0pt plus 5cm}tuple {\bf db.Course.notes} = db.StringProperty()\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{classdb_1_1_course_ab40dce44a9a1a1aaa92f985e9b8507b2}


Notes variable. 

\hypertarget{classdb_1_1_course_aee5c046a740f6e80b08478fdd6773d94}{
\index{db::Course@{db::Course}!openSpots@{openSpots}}
\index{openSpots@{openSpots}!db::Course@{db::Course}}
\subsubsection[{openSpots}]{\setlength{\rightskip}{0pt plus 5cm}tuple {\bf db.Course.openSpots} = db.IntegerProperty()\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{classdb_1_1_course_aee5c046a740f6e80b08478fdd6773d94}


Open spots variable. 

Indicates how many positions are left to enroll in the class. \hypertarget{classdb_1_1_course_aa63be9370d9c1d5b158c32fb3d52abd4}{
\index{db::Course@{db::Course}!prerequisites@{prerequisites}}
\index{prerequisites@{prerequisites}!db::Course@{db::Course}}
\subsubsection[{prerequisites}]{\setlength{\rightskip}{0pt plus 5cm}tuple {\bf db.Course.prerequisites} = db.StringProperty()\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{classdb_1_1_course_aa63be9370d9c1d5b158c32fb3d52abd4}


Prerequisites variable. 

Stores string name of course in DPTXXX format (three latter code and number without spaces). \begin{Desc}
\item[\hyperlink{todo__todo000001}{Todo}]for now just store the string from the UM course schedule site... later this might change to reference other Courses. how that might be done: to support pre-\/requisites like (CSC120 OR CSC210) AND (BIL150 OR BIL104) this will need to be stored in CNF. possibly as a list of AND'd references to a new DB model object that has a list of \hyperlink{classdb_1_1_course}{Course} references within it that are OR'd. \end{Desc}
\hypertarget{classdb_1_1_course_a5398dd16d3946c142e30203107ac0795}{
\index{db::Course@{db::Course}!professor@{professor}}
\index{professor@{professor}!db::Course@{db::Course}}
\subsubsection[{professor}]{\setlength{\rightskip}{0pt plus 5cm}tuple {\bf db.Course.professor} = db.ReferenceProperty({\bf Professor})\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{classdb_1_1_course_a5398dd16d3946c142e30203107ac0795}


\hyperlink{classdb_1_1_professor}{Professor} variable. 

Points to the professor which teaches this class. References a \hyperlink{classdb_1_1_professor}{Professor} object. \hypertarget{classdb_1_1_course_abc1c9a9aa1d4f5ad637f125080861baa}{
\index{db::Course@{db::Course}!section@{section}}
\index{section@{section}!db::Course@{db::Course}}
\subsubsection[{section}]{\setlength{\rightskip}{0pt plus 5cm}tuple {\bf db.Course.section} = db.StringProperty()\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{classdb_1_1_course_abc1c9a9aa1d4f5ad637f125080861baa}


Section letter variable. 

\hypertarget{classdb_1_1_course_a77a8cf75268a30b61bda62b52cd63ec2}{
\index{db::Course@{db::Course}!title@{title}}
\index{title@{title}!db::Course@{db::Course}}
\subsubsection[{title}]{\setlength{\rightskip}{0pt plus 5cm}tuple {\bf db.Course.title} = db.StringProperty()\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{classdb_1_1_course_a77a8cf75268a30b61bda62b52cd63ec2}


Title of class variable. 

Complete name of class as scraped from myUM. \hypertarget{classdb_1_1_course_a0c8b909d11f2b4d9777f90afbdc86fb5}{
\index{db::Course@{db::Course}!type@{type}}
\index{type@{type}!db::Course@{db::Course}}
\subsubsection[{type}]{\setlength{\rightskip}{0pt plus 5cm}tuple {\bf db.Course.type} = db.StringListProperty(choices=\mbox{[}\char`\"{}writing\char`\"{}, \char`\"{}lab\char`\"{}, \char`\"{}honors\char`\"{}, \mbox{[}$\,$\mbox{]}\mbox{]})\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{classdb_1_1_course_a0c8b909d11f2b4d9777f90afbdc86fb5}


Type of class variable. 

Used for further defining just what the class satisfies. For degree purposes. 

The documentation for this class was generated from the following file:\begin{DoxyCompactItemize}
\item 
db.py\end{DoxyCompactItemize}
